package com.f5.management.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
<<<<<<< HEAD
=======
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
>>>>>>> 062e121eb37da11194bffb098d850f2f9dc80dc1

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Equipment {
    private int id;
<<<<<<< HEAD
    private String deviceName;
    private String deviceNum;
=======
    private String communityName;        //小区id
    private String deviceNum;//设备编号
    private String deviceName;//设备名
    private String brand;//品牌
    private double price;//价格
    private int total;//购买数量
    @DateTimeFormat(pattern = "yyyy-MM-dd   HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT"+24)
    private Date payTime;//购买时间
    private int serviceLife;//预计使用年限
    @DateTimeFormat(pattern = "yyyy-MM-dd   HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT"+24)
    private Date createTime;//创建时间
>>>>>>> 062e121eb37da11194bffb098d850f2f9dc80dc1
}
